<?php
$product_id = (int) $_GET['product_id'];
if($product_id>0){
    $arrReturn = array();
    require_once "../admin/Model/Home.php";
    $modelHome = new Home;
    $rs = $modelHome->getDetailProduct($product_id);
    $row = mysql_fetch_assoc($rs);    
    $rs_cate = $modelHome->getDetailCateByID($row['category_id']);
   
    $row_detail_cate = mysql_fetch_assoc($rs_cate);   

 ?>
<div>                            
<div id="pics_thumb" class="w640">
    <div class="bg_border">
        <div class="pics">
            <p><a href="javascript:;"><img width="600" align="absmiddle" src="<?php echo str_replace("../", "", $row['url_images'])?>" align="absmiddle" title="<?php echo $row['product_name']; ?>"></a></p>                                            
            <p class="txt_12"><b>CODE: <span class="mercy_color"><?php echo $row['product_code'];?></span></b></p>
            <p id="p_description"><?php echo $row['description']; ?></p>                                            
            <p class="danhmuc">Danh mục: <a href="<?php echo $row_detail_cate['cate_alias']; ?>.html" id="p_cate"><?php echo $row_detail_cate['cate_name']; ?></a></p>
            <div class="txt_11 price">
                <p id="p_price"><span>Giá tham khảo 
                    <?php if($row['price']!=''){?>
                    <b><?php echo number_format($row['price'], 0, ',', '.');?></b> VNĐ
                    <?php } else{ ?>
                    <b>Liên hệ</b>
                    <?php }?>
                    </span></p>
            </div>
            <p class="thamkhaothem">Share link hình ảnh: <input class="sharelink" name="" type="text" value="http://www.mercy.vn/link-hinh-anh-chi-tiet"/></p>

        </div>

        <div class="box_comment">
            <img src="images/graphics/comment_FB.jpg" align="absmiddle"/>
        </div>
        <div class="clear">&nbsp;</div>
    </div>
    <div class="bg_popup">&nbsp;</div>
</div>
</div>

<?php } ?>